package com.bbb.blogservice.service.blog;

import com.bbb.blogservice.entity.BlogContent;
import com.bbb.blogservice.entity.BlogInfo;
import com.bbb.blogservice.entity.BlogTopic;
import com.bbb.blogservice.entity.BlogVideo;

import java.util.List;
import java.util.Map;

public interface BlogService {
    void saveTopic(BlogTopic blogTopic);

    void updateTopic(BlogTopic blogTopic);

    void createBlog(BlogInfo blogInfo, BlogContent blogContent);

    void saveBlog(BlogContent blogContent, BlogInfo blogInfo);

    List<BlogTopic> getAllTopicByUser(Long userId);

    List<BlogInfo> getAllBlogByTopicId(String topicId);

    Map<String,Object> getBlogById(Long id);

    List<BlogInfo> getAllBlog();

    List<BlogVideo> getBlogVideo(Long blogId);
}
